package cn.antsing;

import cn.antsing.bean.EncodingConvert;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * vm options:-Dfile.encoding=UTF-8   或者 -Dfile.encoding=GBK
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("cn.antsing");
        // System.setProperty("file.encoding","GBK");
        //System.out.println(System.getProperty("file.encoding"));
        System.out.println("EncodingConvert实例："+applicationContext.getBeansOfType(EncodingConvert.class));

        applicationContext.close();
    }
}
